package com.taowan.xunbaozl.morning_speak.design_pattern.pre;

/**
 * Created by 杨观回 on 2016/2/25 0025.
 * 类的适配器模式
 */
public class ClassAdapter extends Source2 implements Source {
    @Override
    public void method2() {
        System.out.println("ClassAdapter method2");
    }
}

interface Source {
    void method1();
    void method2();
}

abstract class Source2 {
    public void method1() {
        System.out.println("source2 method1");
    }
}




